<surveyDefinition id="sd2" description="Sample Definition 2">
  <questions>
    <question id="q1" required="true" kind="Options">
      <description>Question 1</description>
      <options>
        <option value="true">Yes</option>
        <option value="false">No</option>
        <option value="maybe">Maybe</option>
      </options>
    </question>
    <question id="q2" precondition="q1true" required="false" kind="Options">
	  <description>Question 2 (q1 = yes)</description>
	  <options>
        <option value="true">Yes</option>
        <option value="false">No</option>
      </options>
    </question>
    <question id="q3" precondition="q1false" required="false" kind="Options">
	  <description>Question 3 (q1 = no)</description>
	  <options>
        <option value="true">Yes</option>
        <option value="false">No</option>
      </options>
    </question>
    <question id="q4" precondition="q1maybe" condition="q4something" kind="Checks">
	  <description>Question 4 (q1 = maybe)</description>
      <options>
        <option value="red">Red</option>
        <option value="violet">Violet</option>
        <option value="blue">Blue</option>
        <option value="white">White</option>
      </options>
    </question>
  </questions>
  <results>
    <result ruleset="red+blue">Red y blue makes violet</result>
    <result ruleset="violet">Violet</result>
    <result ruleset="white+blue">Light blue</result>
    <result ruleset="white+red">Pink</result>
  </results>
  <rulesets>
    <ruleset id="q4something">
	  <or>
        <optionChecked identifier="q4">violet</optionChecked>
        <optionChecked identifier="q4">blue</optionChecked>
        <optionChecked identifier="q4">white</optionChecked>
        <optionChecked identifier="q4">red</optionChecked>
	  </or>
    </ruleset>
    <ruleset id="q1maybe">
      <optionChecked identifier="q1">maybe</optionChecked>
    </ruleset>
    <ruleset id="q1true">
      <optionChecked identifier="q1">true</optionChecked>
    </ruleset>
    <ruleset id="q1false">
      <optionChecked identifier="q1">false</optionChecked>
    </ruleset>
    <ruleset id="red+blue">
      <optionChecked identifier="q4">red</optionChecked>
      <optionChecked identifier="q4">blue</optionChecked>
    </ruleset>
    <ruleset id="violet">
      <optionChecked identifier="q4">violet</optionChecked>
    </ruleset>
    <ruleset id="white+blue">
      <optionChecked identifier="q4">white</optionChecked>
      <optionChecked identifier="q4">blue</optionChecked>
    </ruleset>
    <ruleset id="white+red">
      <optionChecked identifier="q4">white</optionChecked>
      <optionChecked identifier="q4">red</optionChecked>
    </ruleset>
  </rulesets>
</surveyDefinition>